Complete term rewrite systems for decimal arithmetic and other total recursive functions
نویسنده
چکیده
We present a strongly normalising and confluent term rewrite system which describes addition, subtraction, and multiplication of positive and negative integers represented in base 10. We prove a general theorem giving an easily checkable syntactic condition on term rewrite systems which implies strong normalisation. The rewrite system for decimal arithmetic satisfies the condition. The method immediately extends to allow, for any definition of a total recursive function on integers, the construction of a strongly normalising term rewrite system which represents that function.
منابع مشابه
Reportrapport Rewrite Systems for Integer Arithmetic Rewrite Systems for Integer Arithmetic
We present three term rewrite systems for integer arithmetic with addition, multiplication, and, in two cases, subtraction. All systems are ground connuent and terminating; termination is proved by semantic labelling and recursive path order. The rst system represents numbers by successor and predecessor. In the second, which deenes non-negative integers only, digits are represented as unary op...
متن کاملRewrite Systems for Integer Arithmetic
H.Zantema Utrecht University, Compo Sc. Dept. P.O. Box 80.089, 3508 TB Utrecht [email protected] We present three term rewrite systems for integer arithmetic with addition, multiplication, and, in two cases, subtraction. All systems are ground confluent and terminating; termination is proved by semantic labelling and recursive path order. The first system represents numbers by successor and prede...
متن کاملRewrite systems for integer arithmetic
H.Zantema Utrecht University, Compo Sc. Dept. P.O. Box 80.089, 3508 TB Utrecht [email protected] We present three term rewrite systems for integer arithmetic with addition, multiplication, and, in two cases, subtraction. All systems are ground confluent and terminating; termination is proved by semantic labelling and recursive path order. The first system represents numbers by successor and prede...
متن کاملRewrite systems for integer arithmetic
H.Zantema Utrecht University, Compo Sc. Dept. P.O. Box 80.089, 3508 TB Utrecht [email protected] We present three term rewrite systems for integer arithmetic with addition, multiplication, and, in two cases, subtraction. All systems are ground confluent and terminating; termination is proved by semantic labelling and recursive path order. The first system represents numbers by successor and prede...
متن کاملThree Datatype Defining Rewrite Systems for Datatypes of Integers each extending a Datatype of Naturals
Integer arithmetic is specified according to three views: unary, binary, and decimal notation. The binary and decimal view have as their characteristic that each normal form resembles common number notation, that is, either a digit, or a string of digits without leading zero, or the negated versions of the latter. The unary view comprises a specification of integer arithmetic based on 0, succes...
متن کامل